package pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 订单
 */
public class BuyOrder implements Serializable {
    private Integer id;

    private String code;        //订单号

    private Integer houseId;    //发货仓库

    private Integer userId;     //客户

    private BigDecimal amount;   //订单总价

    private BigDecimal rAmount;   //已收金额

    private Integer orderStaId;   //订单状态

    private Integer recStaId;     //收款状态

    private Integer afterStaId;    //售后状态
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date planDate;         //预期交货时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date overDate;          //实际交货时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;        //订单提交时间

    private Integer isSpecial;      //是否为特批价

    private BigDecimal deliveryCost; //配送费

    private String addressee;         //优惠金额

    private String phone;            //收件人

    private String address;           //联系电话

    private String single;             //收货地址

    private String remark;              //制单人

    private Integer isDelete;           //备注

    private List<DetailList> list; // 订单明细集合




    public List<DetailList> getList() {
        return list;
    }

    public void setList(List<DetailList> list) {
        this.list = list;
    }

    public Integer getIsDelete() {return isDelete; }

    public void setIsDelete(Integer isDelete) {this.isDelete = isDelete; }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public Integer getHouseId() {
        return houseId;
    }

    public void setHouseId(Integer houseId) {
        this.houseId = houseId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getrAmount() {
        return rAmount;
    }

    public void setrAmount(BigDecimal rAmount) {
        this.rAmount = rAmount;
    }

    public Integer getOrderStaId() {
        return orderStaId;
    }

    public void setOrderStaId(Integer orderStaId) {
        this.orderStaId = orderStaId;
    }

    public Integer getRecStaId() {
        return recStaId;
    }

    public void setRecStaId(Integer recStaId) {
        this.recStaId = recStaId;
    }

    public Integer getAfterStaId() {
        return afterStaId;
    }

    public void setAfterStaId(Integer afterStaId) {
        this.afterStaId = afterStaId;
    }

    public Date getPlanDate() {
        return planDate;
    }

    public void setPlanDate(Date planDate) {
        this.planDate = planDate;
    }

    public Date getOverDate() {
        return overDate;
    }

    public void setOverDate(Date overDate) {
        this.overDate = overDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getIsSpecial() {
        return isSpecial;
    }

    public void setIsSpecial(Integer isSpecial) {
        this.isSpecial = isSpecial;
    }

    public BigDecimal getDeliveryCost() {
        return deliveryCost;
    }

    public void setDeliveryCost(BigDecimal deliveryCost) {
        this.deliveryCost = deliveryCost;
    }

    public String getAddressee() {
        return addressee;
    }

    public void setAddressee(String addressee) {
        this.addressee = addressee == null ? null : addressee.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getSingle() {
        return single;
    }

    public void setSingle(String single) {
        this.single = single == null ? null : single.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

}